#ifndef TIME_H
#define TIME_H
#include <iostream>
#include <ctime>
using std::ostream;
using std::istream;

class Date{
private:
    int year;
    int month;
    int day;
    int hour;
    int min;
public:
    Date(int _year, int _month, int _day, int _hour, int _min);
    Date();
    
    int getYear() const {return year;}
    int getMonth() const {return month;}
    int getDay() const {return day;}
    int getHour() const {return hour;}
    int getMin() const {return min;}
    
    void setDate();
    bool dateLaterThan(const Date& other) const;

    friend std::ostream& operator<<(ostream& out, const Date& date);
    friend std::istream& operator>>(istream& in, Date& date);
};


#endif